package cn.edu.hbpu.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author lcy
 * @date 2022/8/7 16:09
 * @description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("goods_type")
public class GoodsType {
    /**
     * 型号名
     */
    private String typeTitle;
    /**
     * 型号图片
     */
    private String typeImage;
    /**
     * 商品id
     */
    @JsonProperty("gId")
    private String gId;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
